import http from '../index'

const api = '/provider/miravia'

export function main() {
  return http.get(api)
}

export function url() {
  return http.get(api + '/url')
}


export function auth(code) {
  return http.get(api + '/auth', {
    params: { code }
  })
}

export function seller() {
  return http.get(api + '/seller')
}